package models;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

import play.data.validation.MaxSize;
import play.data.validation.Required;
import play.db.jpa.Model;
@Entity
public class Question extends Model {
	@Required
	public String Title;
	@Required
	public String QuestionBody;
	@OneToMany (mappedBy = "question")
	public List<Candidate> candidates;
	public boolean isEnded;
}
